package com.ll.xiaonew.commons.core.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author new
 * @date 2022/12/5 15:41
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_user")
public class User {
    @TableId(type = IdType.AUTO)
    @TableField("id")
    private Integer userId;

    @TableField("username")
    private String username;

    @TableField("password")
    private String password;

    @TableField("status")
    private String status;//转态，0无效，1有效，2锁定

    @TableField("sex")
    private String sex;

    @TableField("email")
    private String email;

    @TableField("phone_no")
    private String phoneNo;

    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private String createtime;

}
